<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>


<div class="panel panel-primary">
  <!-- Default panel contents -->
  <div class="panel-heading">Login</div>
  <div class="panel-body">




<p>Please fill out the following form with your login credentials:</p>

<div class="form form-horizontal">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<div class="form-group">
		<?php echo $form->labelEx($model,'username', array('class'=>'col-md-2 control-label')); ?>
        <div class="col-md-10">
		<?php echo $form->textField($model,'username', array('class'=>'form-control')); ?>
        </div>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="form-group">
		<?php echo $form->labelEx($model,'password', array('class'=>'col-md-2 control-label')); ?>
        <div class="col-md-10">
		<?php echo $form->passwordField($model,'password', array('class'=>'form-control')); ?>
        </div>
		<?php echo $form->error($model,'password'); ?>
		<!--<p class="hint">
			Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
		</p>-->
	</div>

	<div class="form-group rememberMe">
		<?php echo $form->checkBox($model,'rememberMe', array('class'=>'col-md-2 control-label')); ?>
        <div class="col-md-10">
		<?php echo $form->label($model,'rememberMe'); ?>
        </div>
		<?php echo $form->error($model,'rememberMe'); ?>
	</div>
    </div>
    </div>
<div class="panel-footer" align="center">
	<div class="buttons">
		<?php echo CHtml::submitButton('Login', array('class'=>'btn btn-success')); ?>
	</div>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
